#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QToolBar>
#include "modelviewer.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    //menu bar
    QMenuBar* menu = new QMenuBar(this);
    setMenuBar(menu);
    QMenu* load = menu->addMenu("File");
    load->addAction("Open");
    //tool bar
    QToolBar* tool = new QToolBar(this);
    tool->setFloatable(false);
    tool->setMovable(false);
    addToolBar(Qt::TopToolBarArea, tool);
    tool->addAction("Select");
    //add modelviewer
    _pModelViewer = new ModelViewer(this);
    setCentralWidget(_pModelViewer);
}

MainWindow::~MainWindow()
{
    delete ui;
}
